import 'package:flutter/material.dart';

class Login extends StatefulWidget {
  const Login({Key? key}) : super(key: key);

  @override
  _LoginState createState() => _LoginState();
}

class _LoginState extends State<Login> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(primaryColor: Colors.lightBlue),
      home: Scaffold(
        body: Column(
          children: [
            SizedBox(height: 300,),
            ElevatedButton(onPressed: (){


            }, child: Text('点击登录')),
            ElevatedButton(onPressed: (){

              Navigator.pushNamed(context, "/register1", arguments: {'id':'123'});

              // Navigator.pushReplacementNamed(context, '/register1');

            }, child: Text('点击注册')),
          ],
        ),
      ),
    );
  }
}
